cmake_minimum_required(VERSION 3.13)
project(udf_redis C)

set(CMAKE_C_STANDARD 99)

include_directories(
    .
    /usr/local/mysql/include/
    /usr/local/include/hiredis-vip
)

link_directories(
    /usr/local/lib
)

add_library(udf_redis SHARED mysql_redis.c mysql_redis.h)

target_link_libraries(udf_redis hiredis_vip)